using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace OpenRay
{
	//Immutable class
	public class ColorMaterial : Material
	{
		private readonly Color color;
		
		public ColorMaterial ( Color c)
		{
			color = c;
		}
		
		public override Color Shade( Point worldHit, Point ModelHit, Vector normalizedViewer, Vector surfaceNormal, IList<Light> lights, uint depth )
		{
			return color;	
		}
		
		public override Color Shade( Point worldHit, Point ModelHit, Vector normalizedViewer, Vector surfaceNormal, IList<Light> lights, Material.Face f, uint depth)
		{
			return color;	
		}
	}
}

